(global.webpackJsonp = global.webpackJsonp || []).push([
  ["components/basic-component/app-jump-button/app-jump-button"], {
    "416f": function (t, e, n) {},
    "8bf9": function (t, e, n) {
      n.r(e);
      var a = n("93b9"),
        r = n.n(a);
      for (var o in a) "default" !== o && function (t) {
        n.d(e, t, function () {
          return a[t]
        })
      }(o);
      e.default = r.a
    },
    "8c7e": function (t, e, n) {
      var a = n("416f");
      n.n(a).a
    },
    "93b9": function (t, e, n) {
      (function (t) {
        Object.defineProperty(e, "__esModule", {
          value: !0
        }), e.default = void 0;
        var a = n("8de3"),
          r = n("ac6b"),
          o = {
            name: "app-jump-button",
            props: {
              item: Object,
              arrangement: {
                type: String,
                default: function () {
                  return "row"
                }
              },
              backgroundColor: String,
              form: {
                type: Boolean,
                default: function () {
                  return !0
                }
              },
              height: {
                type: String,
                default: function () {
                  return "100"
                }
              },
              width: {
                type: String,
                default: function () {
                  return "100"
                }
              },
              open_type: {
                type: String,
                default: function () {
                  return "navigate"
                }
              },
              url: {
                type: String,
                default: function () {
                  return ""
                }
              },
              params: {
                type: Array,
                default: function () {
                  return []
                }
              },
              number: {
                type: String,
                default: function () {
                  return ""
                }
              },
              appId: {
                type: String,
                default: function () {
                  return ""
                }
              },
              path: {
                type: String,
                default: function () {
                  return ""
                }
              },
              latitude: {
                type: String,
                default: function () {
                  return "0"
                }
              },
              longitude: {
                type: String,
                default: function () {
                  return "0"
                }
              },
              address: {
                type: String,
                default: function () {
                  return ""
                }
              }
            },
            methods: {
              jumpLogic: function (e) {
                var n = this;
                switch (this.form && (0, a.push)(e.detail.formId), this.open_type) {
                  case "reLaunch":
                    t.reLaunch({
                      url: this.url
                    });
                    break;
                  case "redirect":
                    t.redirectTo({
                      url: this.url
                    });
                    break;
                  case "navigate":
                    if (this.url) {
                      var o = this.url;
                      if (this.params.length > 0) {
                        for (var i = "?", u = 0; u < this.params.length; u++) i += "".concat(this.params[u].key, "=").concat(this.params[u].value, "&");
                        o += i.slice(0, i.length - 1)
                      }
                      t.navigateTo({
                        url: o
                      })
                    }
                    break;
                  case "app_admin":
                    1 == this.$store.state.user.info.identity.is_admin && t.navigateTo({
                      url: this.url
                    });
                    break;
                  case "back":
                    t.navigateBack({});
                    break;
                  case "tel":
                    1 === this.params.length ? t.makePhoneCall({
                      phoneNumber: this.params[0].value
                    }) : this.number ? t.makePhoneCall({
                      phoneNumber: this.number
                    }) : t.makePhoneCall({
                      phoneNumber: this.url.split("?")[1].split("=")[1]
                    });
                    break;
                  case "web":
                    this.params.length > 0 ? t.navigateTo({
                      url: "".concat(this.url, "?url=").concat(encodeURIComponent(this.params[0].value))
                    }) : t.navigateTo({
                      url: this.url
                    });
                    break;
                  case "app":
                    if (this.url) {
                      var s = "";
                      if ("app" !== this.url) s = this.url.split("?")[1];
                      else
                        for (var c = 0; c < this.params.length; c++) s += "".concat(this.params[c].key, "=").concat(this.params[c].value, "&");
                      if ("string" != typeof s) return;
                      var p = this.$utils.urlParamsToObject(s),
                        l = "",
                        f = "";
                      l = p.app_id || "", f = p.path || "", t.navigateToMiniProgram({
                        appId: l,
                        path: f,
                        success: function (t) {
                          console.log("打开小程序成功", t)
                        },
                        fail: function (t) {
                          console.log("打开小程序失败", t)
                        }
                      })
                    } else this.appId && t.navigateToMiniProgram({
                      appId: this.appId,
                      path: this.path ? this.path : "",
                      success: function (t) {},
                      fail: function (t) {}
                    });
                    break;
                  case "clear_cache":
                    t.showModal({
                      title: "清理缓存",
                      content: "确定要清理缓存？",
                      cancelText: "取消",
                      confirmText: "确认",
                      success: function (e) {
                        e.confirm && ((0, r.clearStorage)(), n.$user && n.$store && n.$store.state.user.accessToken && n.$user.loginByToken(n.$store.state.user.accessToken), n.$store.dispatch("mallConfig/actionResetConfig"), t.showToast({
                          title: "清理完成",
                          duration: 1e3,
                          icon: "none"
                        }))
                      }
                    });
                    break;
                  case "map":
                    t.openLocation({
                      latitude: Number(this.latitude),
                      longitude: Number(this.longitude),
                      name: this.address,
                      address: this.address,
                      success: function () {},
                      fail: function (t) {}
                    })
                }
              }
            }
          };
        e.default = o
      }).call(this, n("543d").default)
    },
    b362: function (t, e, n) {
      n.r(e);
      var a = n("c40e"),
        r = n("8bf9");
      for (var o in r) "default" !== o && function (t) {
        n.d(e, t, function () {
          return r[t]
        })
      }(o);
      n("8c7e");
      var i = n("2877"),
        u = Object(i.a)(r.default, a.a, a.b, !1, null, "c104c736", null);
      e.default = u.exports
    },
    c40e: function (t, e, n) {
      var a = function () {
          var t = this;
          t.$createElement;
          t._self._c
        },
        r = [];
      n.d(e, "a", function () {
        return a
      }), n.d(e, "b", function () {
        return r
      })
    }
  }
]), (global.webpackJsonp = global.webpackJsonp || []).push(["components/basic-component/app-jump-button/app-jump-button-create-component", {
    "components/basic-component/app-jump-button/app-jump-button-create-component": function (t, e, n) {
      n("543d").createComponent(n("b362"))
    }
  },
  [
    ["components/basic-component/app-jump-button/app-jump-button-create-component"]
  ]
]);